package com.xiao.gulimall.search.vo;

import lombok.Data;

import java.util.List;

@Data
/*
    keyword=小米&
    sort=saleCount_desc/asc&
    hasStock=0/1&
    skuPrice=400_1900&
    brandId=1&
    catalog3Id=1&
    attrs=1_3G:4G:5G&
    attrs=2_骁龙845&
    attrs=4_高清屏
*/
/*
//淘宝创建的SearchParam类的属性：
refpid=mm_26632258_3504122_32538762&
keyword=%E8%8B%B9%E6%9E%9C12&
clk1=4ac82eab0f048388f23f3ca42d6bd3a5&
upsId=4ac82eab0f048388f23f3ca42d6bd3a5&
spm=a2e0b.20350158.search.1&
pid=mm_26632258_3504122_32538762&
union_lens=recoveryid%3A201_11.179.152.30_2267861_1629191759390%3Bprepvid%3A201_11.179.152.30_2267861_1629191759390
 */
public class SearchParam {
    //全文匹配的关键字
    private String keyword;
    //三级分类的ID
    private Long catalog3Id;
    //排序  sort=price/salecount/hotscore_desc/asc
    private String sort;
     // 仅显示有货
    private boolean hasStock=true;
    //价格区间
    private String skuPrice;
    //品牌ID
    private List<Long> brandId;
    //规格属性  按照属性进行筛选
    private List<String> attrs;

    /*** 页码*/
    private Integer pageNum = 2;

    /*** 原生所有查询属性*/
    private String _queryString;

    //分类ID
    private List<Long> catalogId;
}
